﻿@page "/"
@namespace SuperCode.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@{
    Layout = null;
}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>SuperCode</title>
    <base href="~/" />
    <link rel="stylesheet" href="/_content/Element/css/fix.css" />
    <link rel="stylesheet" href="/_content/Element/css/index.css" />
    <link href="./css/site.css" rel="stylesheet" />
</head>
<body>
    <app>
        @(await Html.RenderComponentAsync<App>(RenderMode.ServerPrerendered))
    </app>

    <script src="/_content/Element/js/dom.js"></script>
    <script src="_framework/blazor.server.js"></script>
    <script>
        const { ipcRenderer } = require("electron");

        window.onbeforeunload = (e) => {
            e.returnValue = true;
            ipcRenderer.send("hideToSystemTray");
        };
    </script>
</body>
</html>
